package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.InviteeRecord;
import com.ruoyi.system.mapper.InviteeRecordMapper;
import com.ruoyi.system.service.InviteeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InviteeRecordServicelmpl implements InviteeRecordService {
    @Autowired
    private InviteeRecordMapper inviteeRecordMapper;

    @Override
    public int insertInviteeRecord(InviteeRecord inviteeRecord) {
        return inviteeRecordMapper.insertInviteeRecord(inviteeRecord);
    }

    @Override
    public List<InviteeRecord> selectByInviteCode(String inviteCode) {
        return inviteeRecordMapper.selectByInviteCode(inviteCode);
    }
}
